package com.ytjj.qmyx.admin.controller.data;

import com.ytjj.common.api.CommonResult;
import com.ytjj.qmyx.admin.model.request.dataStatistics.AreaTimePeriodRequest;
import com.ytjj.qmyx.admin.service.data.AreaTimePeriodService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Description 地区时段统计
 * @ClassName AreaTimeZoneStatisticsController
 *
 * 
 * @Version 1.0
 **/

@RestController
@RequestMapping("/areaTimePeriod")
public class AreaTimePeriodStatisticsController {

    @Resource
    private AreaTimePeriodService areaTimePeriodService;

    @PostMapping("/getAreaTimePeriodStatisticsList")
    public CommonResult getAreaTimePeriodStatisticsList(@RequestBody AreaTimePeriodRequest areaTimePeriodRequest) {
        return CommonResult.success(areaTimePeriodService.getAreaTimePeriodStatisticsList(areaTimePeriodRequest));
    }
}